#include "WidgetCreator.h"
#include "PagesTypeDefine.h"
#include <QWidget>
#include "LoginWidget/LoginWidget.h" 
WidgetCreator::WidgetCreator()
{
}

QWidget *WidgetCreator::GetWidgetByType(int pageType, QWidget *parent)
{
    LoginWidgetCreate creator;
    return creator.GetWidgetByType(pageType,parent);
}


QWidget *LoginWidgetCreate::GetWidgetByType(int pageType, QWidget *parent)
{
    // 创建登录界面
    if (pageType == PagesDefine::PageLogin)
    {
        return new LoginWidget(parent);
    }
    else
    {

    }
    return nullptr;

}
